package com.exam.dao;

import com.exam.entity.Examination;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface IExaminationDao {

    //查询所有考试
    List<Map<String, Object>> getAllExaminations();

    //新增一场考试信息
    int addExamination(Examination examination);

    //删除一场考试
    int delExamination(int eid);

    //修改考试信息
    int editExamination(Examination examination);

    //分页查询考试信息
    List<Map<String, Object>> getExaminationsByPage();

    //总条数
    int getCountByExamination();

    //模糊查询 考试  通过考试名称及学生学号
    List<Map<String, Object>> getExaminationByName( String ename);

    //批量导入考试信息
    int doImportExam(List<Examination> list);
}
